<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 数组的解构
      // const arr = ["a", "b"];

      // const x = arr[0];
      // const y = arr[1];
      // const [x, y] = ["a", "b"];
      // console.log(x, y);

      // function fn(arr) {
      //   console.log(arr[0] + arr[1]);
      // }
      // fn([5, 8])

      // function fn([x, y]) {
      //   console.log(x + y);
      // }
      // fn([5, 8])






      // 对象的结构
      // const obj = {
      //   name: "zhangsan",
      //   age: 20
      // }
      // const name = obj.name;
      // const {name, age} = {
      //   name: "zhangsan",
      //   age: 20
      // };
      // console.log(name, age);

      const movieInfo = {
        bingeWatch: 0,
        cat: "剧情,历史,战争",
        civilPubSt: 0,
        comingTitle: "9月18日 周四",
        desc: "主演:姜武,王志文,李乃文",
        dir: "赵林山",
        dur: 125,
        effectShowNum: 0,
        followst: 0,
        fra: "美国,中国香港,中国澳门,澳大利亚,新西兰,加拿大,韩国,新加坡,马来西亚,俄罗斯,英国,德国,法国",
        frt: "2025-09-19 00:00:00,2025-09-18 00:00:00,2025-09-18 00:00:00,2025-09-18 00:00:00,2025-09-18 00:00:00,2025-09-19 00:00:00,,,,,,,",
        ftime: ",,,,,,2025-11,2025,2025,2025,2025,2025,2025",
        globalReleased: true,
        haspromotionTag: false,
        headLineShow: false,
        id: 1207331,
        img: "https://p0.pipi.cn/mediaplus/friday_image_fe/0fa3349a6e3051d8185be7b0f6a20a5280f33.jpg?imageMogr2/quality/80",
        isRevival: false,
        late: false,
        localPubSt: 0,
        mark: false,
        mk: 0.0,
        movieType: 0,
        nm: "731",
        pn: 70,
        preSale: 0,
        preShow: false,
        proScore: 0.0,
        proScoreNum: 0,
        pubDate: 1758124800000,
        pubDesc: "2025-09-18 09:00中国大陆上映",
        pubShowNum: 0,
        recentShowDate: 1758470400000,
        recentShowNum: 0,
        rt: "2025-09-18",
        sc: 0.0,
        scm: "",
        scoreLabel: "暂无评分",
        showCinemaNum: 187,
        showInfo: "今天187家影院放映4227场",
        showNum: 4227,
        showStateButton: {
          color: "#F03D37",
          content: "购票",
          contentImg:
            "https://p0.pipi.cn/mediaplus/fe_rock_web/0fa334bfbf80515be7d8a1291733a206d4bd3.png?imageMogr2/thumbnail/2500x2500%3E",
          onlyPreShow: false,
        },
        showTimeInfo: "2025-09-18上映",
        showst: 3,
        snum: 433982,
        src: "中国大陆",
        star: "姜武,王志文,李乃文",
        totalShowNum: 10684,
        ver: "IMAX 2D/CINITY 2D/杜比影院 2D/中国巨幕2D",
        videoId: 516209,
        videoName: "电影《731》发布剧情版预告",
        videourl:
          "https://vod.pipi.cn/fec9203cvodtransbj1251246104/28a250c75145403699341306865/v.f42905.mp4",
        vnum: 7,
        vodPlay: false,
        wish: 4688547,
        wishst: 0,
      };

      // const {img, nm, star} = movieInfo;
      // console.log(img, nm, star);
      

      const {nm: name} = movieInfo;
      console.log(name);
      
      
    </script>
  </body>
</html>
